package com.ggqq.dao;

import com.ggqq.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * 用户 dao层
 * */
@Mapper
@Repository
public interface UserDao {
    //核对用户名和密码
    User findByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
    //注册新用户
    int insertByUsernameAndPassword(User user);

}
